package com.ruoyi.energize.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分类表对象 category
 * 
 * @author ruoyi
 * @date 2023-07-10
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Integer cid;

    /** 分配给供应商的CID */
    @Excel(name = "分配给供应商的CID")
    private Integer originalId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String directory;

    /** LOGO */
    @Excel(name = "LOGO")
    private String logo;

    /** 父类ID */
    @Excel(name = "父类ID")
    private Long fatherId;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;

    /** 分区ID */
    @Excel(name = "分区ID")
    private Long fid;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long sid;

    /** 是否显示0不显示1显示 */
    @Excel(name = "是否显示0不显示1显示")
    private Integer isDisplay;

    /** 显示排序，越大越靠前 */
    @Excel(name = "显示排序，越大越靠前")
    private Long displayOrder;

    /** 推荐，1-是，0-否（H5端推荐类别） */
    @Excel(name = "推荐，1-是，0-否", readConverterExp = "H=5端推荐类别")
    private Integer isRecommend;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setCid(Integer cid) 
    {
        this.cid = cid;
    }

    public Integer getCid() 
    {
        return cid;
    }
    public void setOriginalId(Integer originalId) 
    {
        this.originalId = originalId;
    }

    public Integer getOriginalId() 
    {
        return originalId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setDirectory(String directory) 
    {
        this.directory = directory;
    }

    public String getDirectory() 
    {
        return directory;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }
    public void setFatherId(Long fatherId) 
    {
        this.fatherId = fatherId;
    }

    public Long getFatherId() 
    {
        return fatherId;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setIsDisplay(Integer isDisplay) 
    {
        this.isDisplay = isDisplay;
    }

    public Integer getIsDisplay() 
    {
        return isDisplay;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }
    public void setIsRecommend(Integer isRecommend) 
    {
        this.isRecommend = isRecommend;
    }

    public Integer getIsRecommend() 
    {
        return isRecommend;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("originalId", getOriginalId())
            .append("categoryName", getCategoryName())
            .append("directory", getDirectory())
            .append("logo", getLogo())
            .append("fatherId", getFatherId())
            .append("isDel", getIsDel())
            .append("fid", getFid())
            .append("sid", getSid())
            .append("isDisplay", getIsDisplay())
            .append("displayOrder", getDisplayOrder())
            .append("isRecommend", getIsRecommend())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
